package com.zx.pm.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.zx.common.annotation.Excel;
import com.zx.common.core.domain.BaseEntity;

/**
 * 采购项目信息对象 purchase_project
 * 
 * @author ruoyi
 * @date 2025-09-06
 */
public class PurchaseProject extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Long id;

    /** 项目ID */
    @Excel(name = "项目ID")
    private Long projectId;

    /** 采购编号 */
    @Excel(name = "采购编号")
    private String purchaseNo;

    /** 采购内容 */
    @Excel(name = "采购内容")
    private String purchaseContent;

    /** 采购金额 */
    @Excel(name = "采购金额")
    private BigDecimal purchaseAmount;

    /** 采购日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "采购日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date purchaseDate;

    /** 供应商 */
    @Excel(name = "供应商")
    private String supplier;

    /** 关键词（非持久字段） */
    private String keyword;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setProjectId(Long projectId) 
    {
        this.projectId = projectId;
    }

    public Long getProjectId() 
    {
        return projectId;
    }

    public void setPurchaseNo(String purchaseNo) 
    {
        this.purchaseNo = purchaseNo;
    }

    public String getPurchaseNo() 
    {
        return purchaseNo;
    }

    public void setPurchaseContent(String purchaseContent) 
    {
        this.purchaseContent = purchaseContent;
    }

    public String getPurchaseContent() 
    {
        return purchaseContent;
    }

    public void setPurchaseAmount(BigDecimal purchaseAmount) 
    {
        this.purchaseAmount = purchaseAmount;
    }

    public BigDecimal getPurchaseAmount() 
    {
        return purchaseAmount;
    }

    public void setPurchaseDate(Date purchaseDate) 
    {
        this.purchaseDate = purchaseDate;
    }

    public Date getPurchaseDate() 
    {
        return purchaseDate;
    }

    public void setSupplier(String supplier) 
    {
        this.supplier = supplier;
    }

    public String getSupplier() 
    {
        return supplier;
    }

    public String getKeyword() {
        return keyword;
    }

    public void setKeyword(String keyword) {
        this.keyword = keyword;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("projectId", getProjectId())
            .append("purchaseNo", getPurchaseNo())
            .append("purchaseContent", getPurchaseContent())
            .append("purchaseAmount", getPurchaseAmount())
            .append("purchaseDate", getPurchaseDate())
            .append("supplier", getSupplier())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
